//
//  CourseDetailModel.m
//  Arts1
//
//  Created by 孤星晨宇 on 15/9/29.
//  Copyright © 2015年 Arts1. All rights reserved.
//

#import "CourseDetailModel.h"

@implementation CourseDetailModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"teacher"]) {
        _teacher = [[TeacherModel alloc] init];
        [_teacher setValuesForKeysWithDictionary:value];
    }
}


@end
